window.onload = function () {_absfix();}
var _ix = -1;
var _abx = false;
function _absfix() {

	if (_abx) { return; }
	_abx = true;

	imgfix();
	starttick();
	if (typeof(postinit) == 'function') {
		postinit();
	}

	if (typeof(_nofresh) == 'undefined') {if (_ix < 0) { _ix = window.setTimeout('_rpg()', 900000); }}

	if (typeof(_thispage) != 'undefined') {
		if (_thispage == 'article') {
			if(typeof(_flinx) != 'undefined') {
				var ab = _obj('artbody');
				if (ab) {
					var al = ab.getElementsByTagName('a');
					for (var i = 0; i < al.length; i++) {
						if (al[i].onclick) {
							continue;
						}
						if (al[i].href) {
							_addevent(al[i], 'click', jse);
						}
					}
				}
			}
		}
	}

	var c = _obj('content');
	var l = _obj('left');
	var r = _obj('right');
	if (!c || !l || !r) {
		return;
	}
	var m = (l.offsetHeight > r.offsetHeight) ? l.offsetHeight : r.offsetHeight;
	if (c.offsetHeight < m) {
		var dff = m - c.offsetHeight;
		_obj('foosep').style.height = (dff + 20).toString() + 'px';
		//c.style.height = m.toString() + 'px';
	}
}
var tck = -1;
var tckid = false;
function starttick() {
	var tel = _obj('fp_ticker');
	if (!tel) { return; }
	var e = tel.getElementsByTagName('div');
	var n = e.length;
	if (n < 1) { return; }

	if (tck > -1 && e[tck]) { e[tck].style.display = 'none'; }
	if (tckid) { window.clearTimeout(tckid); }

	if (++tck >= n) { tck = 0; }
	e[tck].style.display = 'block';
	tckid = window.setTimeout('starttick()', 10000);
}
function _rpg() {
	var c = _obj('commentform');
	if (c) { if (c.style.display != 'none') {_ix = window.setTimeout('_rpg()', 900000); return;}}
	window.location.reload(true);
}
function over(i, p) {
	var d = document.getElementById('mdata' + i);
	d.style.display = 'block';

	if (d.className != 'subsub' || typeof(p) == 'undefined') { return; }

	var e = _obj('topnav').offsetWidth;
	var c = _posX(_obj('mtd_' + p)) + 250;
	if (c > e) {
		d.style.marginLeft = '-125px';
	}
}
function overc(i) {
	var d = document.getElementById('mdata' + i);
	d.style.display = 'block';

	var h = _obj('topnav');
	if (!h) { return; }

	var re = _posX(_obj('mtd_' + i)) + d.offsetWidth;
	var rb = _posX(h) + h.offsetWidth;
	if (re > rb) {
		d.style.left = '-' + (re - rb + 10).toString() + 'px';
	}
}
function out(i) {
	var d = document.getElementById('mdata' + i);
	d.style.display = 'none';
}

function imgfix() {

	if (typeof(_thispage) == 'undefined') { return; }
	if (_thispage != 'front' && _thispage != 'cat') { return; }

	var a = document.images;
	var n = a.length;
	for (var i = 0; i < n; i++) {
		var s = a[i].src;
		if (s.indexOf('_t.') == -1) {
			continue;
		}
		if (!imgok(a[i])) {
			a[i].src = s;
		}
	}
}
function imgok(o) {
	if (!o.complete) {
		return false;
	}
	if (typeof o.naturalWidth != "undefined" && o.naturalWidth == 0) {
		return false;
	}
	return true;
}

function sidetab(o, i) {
	var tr = o.parentNode;
	o.className = 'sel';

	if (i == 0) {
		tr.cells[2].className = 'norm';
		_obj('tablatest').style.display = '';
		_obj('tabpopular').style.display = 'none';
	}
	else {
		tr.cells[0].className = 'norm';
		_obj('tablatest').style.display = 'none';
		_obj('tabpopular').style.display = '';
	}
}
function txclean(o) {
	if (o.value == o.defaultValue) {
		o.value = '';
		o.style.color = '#333';
	}
}
function txreset(o) {
	if (o.value == '') {
		o.value = o.defaultValue;
		o.style.color = '#999';
	}
}
function reorder(o) {
	var f = document.forms.s;
	if (f) {
		f.order.value = o.value;
		f.submit();
	}
}
function subscribe() {

	var eml = trim(_obj('txsubemail').value);
	if (!isemail(eml)) {
		alert('Please enter valid email address.');
		_obj('txsubemail').focus();
		return;
	}

	var dat = 'dm=' + SITEDOM;
	dat += '&ln=' + SITELANG;
	dat += '&em=' + encodeURIComponent(eml);
	var chk = _obj('rasubcat');
	if (chk) {
		dat += '&ct=' + chk.value;
	}

	_obj('subform').style.visibility = 'hidden';
	_obj('subform').parentNode.className = 'bigloading';
	posthttp('/common/subscribe.php', onsubscribe, dat);
}
function onsubscribe(o) {
	if (o.readyState != 4) { return; }

	_obj('subform').parentNode.className = '';
	_obj('subform').style.visibility = 'visible';

	if (o.status != 200) { alert('Failed to submit registration.'); return; }

	_obj('subform').innerHTML = o.responseText;
}

function hpage(o) {
	try {
		o.style.behavior = 'url(#default#homepage)';
		o.setHomePage(window.location);
	}
	catch(e) {}
	return false;
}
function bmark() {
	try {
		window.external.AddFavorite(window.location.href, document.title);
	}
	catch (e) {}
	return false;
}

function cuopen(o) {
	var f = document.createElement('form');

	frmappend(f, 'hddmn', SITEDOM);
	frmappend(f, 'hdlng', SITELANG);
	frmappend(f, 'hdttl', o.getAttribute('t'));
	frmappend(f, 'hddsc', o.getAttribute('d'));
	frmappend(f, 'hdnme', o.getAttribute('n'));
	frmappend(f, 'hdeml', o.getAttribute('e'));
	frmappend(f, 'hdmsg', o.getAttribute('m'));
	frmappend(f, 'hdbtn', o.getAttribute('b'));
	frmappend(f, 'hdcem', o.getAttribute('c'));
	frmappend(f, 'hdref', window.location.href);

	f.method = 'POST';
	f.action = SITEIDX + 'contact-us';
	document.body.appendChild(f);
	f.submit();

	return false;
}
function suppopen() {
	var f = document.createElement('form');

	frmappend(f, 'hddmn', SITEDOM);
	frmappend(f, 'hdlng', SITELANG);
	frmappend(f, 'hditem', 'support');
	frmappend(f, 'hdref', window.location.href);

	f.method = 'POST';
	f.action = SITEIDX + 'contact-us';
	document.body.appendChild(f);
	f.submit();

	return false;
}
function frmappend(f, n, v) {
	var e = document.createElement('input');
	e.type = 'hidden';
	e.name = n;
	e.value = v;
	return f.appendChild(e);
}
function cusend() {
	var nme = trim(_obj('cuname').value);
	if (nme.length < 2) {
		//alert('Please enter your name.');
		//_obj('cuname').focus();
		//return false;
	}

	var eml = trim(_obj('cueml').value);
	if (!isemail(eml)) {
		//alert('Please enter valid email address.');
		//_obj('cueml').focus();
		//return false;
	}

	var msg = trim(_obj('cumsg').value);
	if (msg.length < 2) {
		alert('Please enter message text.');
		_obj('cumsg').focus();
		return false;
	}

	var dat = 'dm=' + SITEDOM;
	dat += '&ln=' + SITELANG;
	dat += '&nm=' + encodeURIComponent(nme);
	dat += '&em=' + encodeURIComponent(eml);
	dat += '&ms=' + encodeURIComponent(msg);
	dat += '&rf=' + encodeURIComponent(_obj('tblform').getAttribute('ref'));
	dat += '&cm=' + encodeURIComponent(_obj('tblform').getAttribute('cem'));
	dat += '&ty=' + encodeURIComponent(_obj('tblform').getAttribute('cty'));

	_obj('cuname').disabled = true;
	_obj('cueml').disabled = true;
	_obj('cumsg').style.visibility = 'hidden';
	_obj('cumsg').parentNode.className = 'bigloading';
	_obj('cubtn').disabled = true;
	posthttp('/common/cntus.php', oncntus, dat);
}
function oncntus(o) {
	if (o.readyState != 4) { return; }

	_obj('cuname').disabled = false;
	_obj('cueml').disabled = false;
	_obj('cumsg').style.visibility = 'visible';
	_obj('cumsg').parentNode.className = '';
	_obj('cubtn').disabled = false;

	if (o.status != 200) { alert('Failed to send message.'); return; }

	var bck = _obj('tblform').getAttribute('ref');
	_obj('formhold').innerHTML = '<p>Message is sent</p>';
	if (bck) {
		var a = document.createElement('a');
		a.href = bck;
		a.innerHTML = '&laquo; Back';
		_obj('formhold').appendChild(a);
	}
}
function fp_tab(c, o, s) {
	if (o.className == 'sel') { return; }
	var u = o.getAttribute('u');
	var a = o.getAttribute('a');
	posthttp('/common/tab.php', ontab, 'c=' + c + '&s=' + s + '&a=' + encodeURIComponent(a) + '&u=' + encodeURIComponent(u));
	var h = o.parentNode;
	var a = h.getElementsByTagName('span');
	for (var i = 0; i < a.length; i++) {
		a[i].className = (a[i] == o) ? 'sel' : '';
	}
}
function ontab(o) {
	if (o.readyState != 4) { return; }

	if (o.status != 200) { return; }

	var c = o.getResponseHeader('X-Cid');
	var t = _obj('fptab_' + c);
	if (!t) { return; }
	t.innerHTML = o.responseText;
}

function nextvd(cid) {
	var t = _obj('vttl' + cid);
	var c = _obj('vhld' + cid);
	if (!t || !c) { return false; }

	var l = t.getAttribute('aid');
	
	t.style.visibility = 'hidden';
	firstTag(c).style.visibility = 'hidden';
	c.className = 'bigloading';

	posthttp('/common/nextvideo.php', onnextvid, 'c=' + cid + '&la=' + l + '&ln=' + SITELANG + '&dm=' + encodeURIComponent(SITEDOM));

	return false;
}
function onnextvid(o) {
	if (o.readyState != 4) { return; }

	if (o.status != 200) { return; }

	var cid = o.getResponseHeader('X-Cid');
	
	var t = _obj('vttl' + cid);
	var c = _obj('vhld' + cid);
	if (!t || !c) { return false; }

	

	var emp = o.getResponseHeader('X-Empty');
	if (emp != 1) {
		var a = o.responseXML.getElementsByTagName("video");
		if (a.length == 1) {
			var vt = a[0];
			t.href = vt.getAttribute('url');
			t.innerHTML = vt.getAttribute('title');
			t.setAttribute('aid', vt.getAttribute('aid'));
			var vid = vt.getAttribute('vid');
			c.innerHTML = '<object type="application/x-shockwave-flash" data="' + vid + '" width="250" height="200"><param name=movie value="' + vid + '"><embed src="' + vid + '" type="application/x-shockwave-flash" wmode="transparent" width="250" height="200"></embed></object>';
		}
	}

	t.style.visibility = 'visible';
	firstTag(c).style.visibility = 'visible';
	c.className = '';
}
function astogg() {
	var d = _obj('asform');
	if (d.style.display == 'none') {
		d.style.display = '';
		_obj('sanme').focus();
	}
	else {
		d.style.display = 'none';
	}
	return false;
}
function assnd(o) {
	var n = trim(_obj('sanme').value);
	var e = trim(_obj('saeml').value);
	var r = trim(_obj('sarec').value);
	var m = trim(_obj('samsg').value);
	var t = trim(_obj('sacap').value);

	if (n.length < 1) {
		alert('Please enter your name.');
		_obj('sanme').focus();
		return;
	}
	else if (!isemail(e)) {
		alert('Please enter your email address.');
		_obj('saeml').focus();
		return;
	}
	else if (!isemail(r)) {
		alert('Please enter recepient\'s email address.');
		_obj('sarec').focus();
		return;
	}
	else if (t.length != 5) {
		alert('Please enter 5 character code from image.');
		_obj('sacap').focus();
		return;
	}

	var d = 'n=' + encodeURIComponent(n) + '&e=' + encodeURIComponent(e) + '&r=' + encodeURIComponent(r) + '&m=' + encodeURIComponent(m) + '&v=' + encodeURIComponent(_obj('asform').className) + '&a=' + encodeURIComponent(_obj('asform').getAttribute('a')) + '&l=' + encodeURIComponent(SITELANG) + '&d=' + encodeURIComponent(SITEDOM) + '&c=' + encodeURIComponent(_obj('asform').getAttribute('c')) + '&t=' + encodeURIComponent(t);

	_obj('btnsa').disabled = true;
	posthttp(ascc, onasc, d);
}
function artprnt() {
	_obj('ifrcmd').src = window.location.pathname + '?print=on';
	_obj('objprtn').style.visibility = 'hidden';
	_obj('objprtn').parentNode.className = 'smlwait';
	return false;
}
function artpdf() {
	window.open(window.location.pathname + '?pdf=on');
	return false;
}
function pdone() {
	_obj('objprtn').parentNode.className = '';
	_obj('objprtn').style.visibility = 'visible';
}
function onasc(o) {
	if (o.readyState != 4) { return; }
	if (o.status != 200) { return; }

	_obj('btnsa').disabled = false;

	var res = o.getResponseHeader('X-Aid');
	if (res < 1) {
		alert(o.responseText);
		return;
	}
	alert('Article is sent.');
	_obj('sarec').value = '';
	_obj('asform').style.display = 'none';
}
function nexttv(o) {
	var stn = o.innerHTML;
	var hld = o.parentNode.nextSibling;
	if (!hld) { return false; }

	hld.innerHTML = '';
	var tbl = document.createElement('table');
	var tr = tbl.insertRow(-1);
	var td = tr.insertCell(-1);
	tbl.style.width = '100%';
	tbl.align = 'center';
	td.style.textAlign = 'center';

	hld.appendChild(tbl);
	td.innerHTML = '<object type="text/html" data="/common/mtv.php?s=' + encodeURIComponent(stn) + '" width="295" height=285"></object>';
}

function nluns(o) {
	var e = o.txe.value;
	if (!isemail(e)) {
		alert('Please enter your email address.');
		return false;
	}

	o.hdact.value = 'rms';
	return true;
}

function jsi(o, a) {
	posthttp('/common/acc.php', dummy, 'a=' + a + '&d=' + SITEDOM + '&l=' + SITELANG);
	socks(o.href, trim(iText(o)));
	return false;
}
function jse(e) {
	if (e.preventDefault) {
		e.preventDefault();
	}
	else {
		e.returnValue = false;
		e.cancelBubble = true;
	}
	var o = (e.target) ? e.target : e.srcElement;
	var h = (e.currentTarget) ? e.currentTarget.href : getAtag(o).href;
	if (h) {
		socks(h, '');
	}
	return false;
}
function getAtag(o) {
	var e = o; var i = 0;
	while (e) {
		if (e.tagName.toLowerCase() == 'a') { return e; }
		e = e.parentNode;
		if (++i > 10) { break; }
	}
	return null;
}
function dummy(o) {
	
}
function gsc(f) {
	var t = _obj('gsc_q');
	var q = trim(t.value);
	if (q.length < 1 || q == t.defaultValue) {
		t.focus();
		return false;
	}

	f.q.value = q + ' site:' + this.location.host;
	f.action = 'http://www.google.com/search';
	return true;
}
function splay(o, cid) {
	var b = _obj('playbtn' + cid);
	var t = _obj('playtitle' + cid);
	if (!b || !t) {
		return;
	}

	sText(t, o.getAttribute('title'));
	o.appendChild(b);
	b.style.display = 'block';
}
function spause(o, cid) {
	var b = _obj('playbtn' + cid);
	var t = _obj('playtitle' + cid);
	if (!b || !t) {
		return;
	}

	t.innerHTML = '&nbsp &nbsp;';
	b.style.display = 'none';
}
function pnavprev(cid) {
	var d = _obj('picinner_' + cid);
	if (!d) { return; }

	var a = d.getElementsByTagName('div');
	var n = a.length;
	if (n < 2) { return; }

	for (var i = 0; i < n; i++) {
		if (a[i].style.display != 'none') {
			break;
		}
	}

	var c = i - 1;
	if (c < 0) {
		c = (n - 1);
	}

	a[i].style.display = 'none';
	a[c].style.display = '';

	var l = firstTag(a[c]);
	var t = _obj('picnavtitle_' + cid);
	t.innerHTML = l.getAttribute('title');
	t.href = l.href;

	return false;
}
function pnavnext(cid) {
	var d = _obj('picinner_' + cid);
	if (!d) { return; }

	var a = d.getElementsByTagName('div');
	var n = a.length;
	if (n < 2) { return; }

	for (var i = 0; i < n; i++) {
		if (a[i].style.display != 'none') {
			break;
		}
	}

	var c = i + 1;
	if (c > (n - 1)) {
		c = 0;
	}

	a[i].style.display = 'none';
	a[c].style.display = '';

	var l = firstTag(a[c]);
	var t = _obj('picnavtitle_' + cid);
	t.innerHTML = l.getAttribute('title');
	t.href = l.href;

	return false;
}
function pvid(o) {
	var vu = o.getAttribute('vr');
	var hu = o.getAttribute('hr');
	if (!vu) {
		window.location.href = hu;
		return;
	}

	var im = o.getElementsByTagName('img')[0];
	if (!im) {
		return;
	}
	var s = '<object type="application/x-shockwave-flash" mode="transparent" data="' + vu + '" width="120" height="90"><param name=movie value="' + vu + '"><embed src="' + vu + '" type="application/x-shockwave-flash" wmode="transparent" width="120" height="90"></embed></object>';
	im.parentNode.innerHTML = s;
}
function cmb(t) {
	for (var i = 0; i < 3; i++) {
		if (i == t) {
			_obj('cbb_' + i).className = 'act';
			_obj('cbc_' + i).style.display = 'block';
		}
		else {
			_obj('cbb_' + i).className = '';
			_obj('cbc_' + i).style.display = 'none';
		}
	}
	if (t == 1) {
		_obj('cbmid').className = '';
	}
	else if (t == 2) {
		_obj('cbmid').className = 'sep2';
	}
	else {
		_obj('cbmid').className = 'sep';
	}
}
var cv3 = 0;
function vd3next() {
	var a = _obj('playlist').getElementsByTagName('span');
	var n = a.length;
	if (a < 2) { return; }

	var c = cv3 + 1;
	if (c > (n - 1)) {
		c = 0;
	}

	var s = a[c];
	var vt = s.getAttribute('vt');
	var vu = s.getAttribute('vu');
	var vl = s.getAttribute('vl');
	vd3play(vt, vu, vl);
	
	cv3 = c;
}
function vd3prev() {
	var a = _obj('playlist').getElementsByTagName('span');
	var n = a.length;
	if (a < 2) { return; }

	var c = cv3 - 1;
	if (c < 0) {
		c = n - 1;
	}

	var s = a[c];
	var vt = s.getAttribute('vt');
	var vu = s.getAttribute('vu');
	var vl = s.getAttribute('vl');
	vd3play(vt, vu, vl);

	cv3 = c;
}
function vd3play(vt, vu, vl) {
	var a = _obj('plurl');
	a.innerHTML = vt;
	a.href = vl;
	_obj('plmaster').innerHTML = '<object type="application/x-shockwave-flash" mode="transparent" data="' + vu + '" width="284" height="185"><param name=movie value="' + vu + '"><param name="wmode" value="transparent"><embed src="' + vu + '" type="application/x-shockwave-flash" wmode="transparent" width="284" height="185"></embed></object>';
}

function ttlopen(o) {
	var d = o.parentNode.parentNode;
	var m = 0;
	while (d.className.indexOf('ttlart') == -1) {
		d = d.parentNode;
		m++;
		if (m > 3) { break; }
	}
	d.className = (d.className == 'ttlart') ? 'ttlartopen' : 'ttlart';
	return false;
}
function ttlall(o) {
	if (o.getAttribute('st') == 'closed') {
		o.setAttribute('st', 'open');
		var c = 'ttlartopen';
		o.innerHTML = o.getAttribute('clabel');
	}
	else {
		o.setAttribute('st', 'closed');
		var c = 'ttlart';
		o.innerHTML = o.getAttribute('olabel');
	}
	var a = _obj('titleartlist').childNodes;
	for (var i = 0; i < a.length; i++) {
		if (a[i].className.indexOf('ttlart') != -1) {
			a[i].className = c;
		}
	}
	return false;
}
function forumpost(c, a, p) {
	var f = document.forms.frmfor;
	frmappend(f, 'c', c);
	frmappend(f, 'a', a);
	frmappend(f, 'p', p);
	f.submit();
	return false;
}
function forumnew() {
	var f = document.forms.frmftr;
	if (trim(f.txtitle.value).length < 1) {
		alert('Title must be set.');
		f.txtitle.focus();
		return;
	}
	else if (trim(f.txdesc.value).length < 1) {
		alert('Content must be set.');
		f.txdesc.focus();
		return;
	}
	frmappend(f, 'v', _obj('fbd').className);
	_obj('btnsub').disabled = true;
	f.submit();
	return false;
}
function onforumpost(u) {
	window.location.replace(u);
}
function onforumerr(s) {
	alert(s);
	_obj('btnsub').disabled = false;
}
function forumedit(c) {
	openwin('/common/editcomm.php?d=' + SITEDOM + '&l=' + SITELANG + '&c=' + c, 600, 440, 1, 1);
	return false;
}
function nicktoggle(o) {
	closenick();
	if (o.checked) {
		_obj('nickdiv').style.display = 'none';
	}
	else {
		_obj('nickdiv').style.display = 'block';
		document.forms.frmftr.txnick.focus();
	}
}
function opennick() {
	_obj('nickdiv').style.visibility = 'hidden';
	_obj('subdiv').style.visibility = 'hidden';
	_obj('resnick').style.display = 'block';
	_obj('restable').style.visibility = 'visible';
	_obj('rnick').value = '';
	_obj('rpwd').value = '';
	_obj('rtpwd').value = '';
	_obj('reml').value = '';
	_obj('rnick').focus();
	return false;
}
function closenick() {
	_obj('resnick').style.display = 'none';
	_obj('nickdiv').style.visibility = 'visible';
	_obj('subdiv').style.visibility = 'visible';
	return false;
}

function resnick() {
	var n = trim(_obj('rnick').value);
	if (n.length < 1) {
		alert('Nickname must be set.');
		_obj('rnick').focus();
		return false;
	}
	var p = _obj('rpwd').value;
	if (p.length < 1) {
		alert('Password must be set.');
		_obj('rpwd').focus();
		return false;
	}
	if (p != _obj('rtpwd').value) {
		alert('Password and retyped password do not match.');
		_obj('rpwd').focus();
		return false;
	}
	var e = _obj('reml').value;
	if (!isemail(e)) {
		alert('Please enter valid email address.');
		_obj('reml').focus();
		return false;
	}

	var dat = 'd=' + SITEDOM;
	dat += '&l=' + SITELANG;
	dat += '&n=' + encodeURIComponent(n);
	dat += '&p=' + encodeURIComponent(p);
	dat += '&e=' + encodeURIComponent(e);
	dat += '&rn=' + _obj('fbd').className;

	nickwait(true);
	posthttp('/common/forumnick.php', onresnick, dat);
}
function onresnick(o) {
	if (o.readyState != 4) { return; }

	if (o.status != 200) {
		alert('Failed to submit registration.');
		nickwait(false);
		return;
	}

	var ui = o.getResponseHeader('X-Nick');
	if (!ui) {
		alert(o.responseText);
		nickwait(false);
		return;
	}

	var f = document.forms.frmftr;
	f.txnick.value = _obj('rnick').value;
	f.txupw.value = _obj('rpwd').value;

	nickwait(false);
	closenick();
	_obj('reglink').style.display = 'none';
}
function nickwait(b) {
	if (b) {
		_obj('restable').style.visibility = 'hidden';
		_obj('resnick').className = 'smlwait';
	}
	else {
		_obj('resnick').className = '';
		_obj('restable').style.visibility = 'visible';
	}
}
function shadd(a) {
	var q = _obj('shqnt').value;
	_obj('shopin').style.visibility = 'hidden';
	_obj('shoppingchart').className = 'smlwait';
	posthttp('/common/shadd.php', onshadd, 'a=' + a + '&q=' + q);
	return false;
}
function onshadd(o) {
	if (o.readyState != 4) { return; }
	_obj('shopin').style.visibility = 'visible';
	_obj('shoppingchart').className = '';
	if (o.status != 200) { alert('Failed add item to shopping chart.'); return; }
}
function shadd2(o, a) {
	o.style.visibility = 'hidden';
	o.parentNode.className = 'smlwait';
	posthttp('/common/shadd.php', onshadd2, 'a=' + a + '&q=1');
	return false;
}
function onshadd2(o) {
	if (o.readyState != 4) { return; }
	if (o.status != 200) { alert('Failed add item to shopping chart.'); return; }
	var a = _obj('atc_' + o.responseText);
	a.style.visibility = 'visible';
	a.parentNode.className = '';
}
function gofind(o) {
	if (_obj('sgoogle')) {
		if (_obj('sgoogle').checked) {
			if (SITELANG == 'he') {
				o.action = 'http://www.google.co.il/search';
			}
			else {
				o.action = 'http://www.google.com/search';
			}
			o.target = '_blank';
			return true;
		}
		o.action = o.getAttribute('_action');
	}
	o.target = '_self';
	return true;
}
function adtab(o) {
	var w = _obj('adview');
	var u = o.getAttribute('aur');
	if (u == w.src) {
		return;
	}
	w.src = 'about:blank';
	var a = o.parentNode.getElementsByTagName('div');
	for (var i = 0; i < a.length; i++) {
		a[i].className = '';
	}
	o.className = 'act';
	window.setTimeout("dltab('" + u + "')", 300);
	
}
function dltab(u) {
	_obj('adview').src = u;
}
